<?
if($this->ret['result']){
	$msg_count = $this->ret['data']['message'] + $this->ret['data']['system'] + $this->ret['data']['announcement'];
	if($this->ret['data']['message'] > 0){
		$url = "http://i.178.com/?_app=sms&_controller=index&_action=view_inbox&uid=".self::$login['uid'];
	}elseif($this->ret['data']['system']>0){
		$url = "http://i.178.com/?_app=sms&_controller=system&_action=view_inbox&uid=".self::$login['uid'];
	}else{
		$url = "http://i.178.com/?_app=sms&_controller=announcement&_action=view_inbox&uid=".self::$login['uid'];
	}
	if($msg_count>0):
?>
document.write("<a href='<?= $url?>' target='_blank'>新信息</a>(<?=  $msg_count ?>)");
<? 	else:	?>
document.write("没有新消息");
<?	endif;	?>
<?
}